<template>
    <view>
        首页
    </view>
</template>

<script>
    let that;

    export default {
        data() {
            return {
            }
        },
        onLoad() {
            that = this;
        },
        methods: {
            test() {
                that.$u.post('http://www.example.com', {id: 3, menu: 1}).then(res => {
                    console.log(res);
                });
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>
